using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class LineDeliverMap : EntityTypeConfiguration<LineDeliver>
	{
		public LineDeliverMap()
		{
			// Primary Key
			this.HasKey(t => t.LineDeliverID);

			// Properties
			// Table & Column Mappings
			this.ToTable("LineDeliver");
			this.Property(t => t.LineDeliverID).HasColumnName("LineDeliverID");
			this.Property(t => t.LineInfoID).HasColumnName("LineInfoID");
			this.Property(t => t.DeliverID).HasColumnName("DeliverID");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.UpdateStation).HasColumnName("UpdateStation");
		}
	}
}

